package com.ruoyi.order.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 付款管理对象 payment
 * 
 * @author ruoyi
 * @date 2021-06-06
 */
public class Payment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 付款ID */
    private Long paymentId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 应收金额 */
    @Excel(name = "应收金额")
    private BigDecimal receivable;

    /** 实收金额 */
    @Excel(name = "实收金额")
    private BigDecimal payment;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payType;

    /** 收银员 */
    @Excel(name = "收银员")
    private String cashier;

    public void setPaymentId(Long paymentId) 
    {
        this.paymentId = paymentId;
    }

    public Long getPaymentId() 
    {
        return paymentId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setReceivable(BigDecimal receivable) 
    {
        this.receivable = receivable;
    }

    public BigDecimal getReceivable() 
    {
        return receivable;
    }
    public void setPayment(BigDecimal payment) 
    {
        this.payment = payment;
    }

    public BigDecimal getPayment() 
    {
        return payment;
    }
    public void setPayType(String payType) 
    {
        this.payType = payType;
    }

    public String getPayType() 
    {
        return payType;
    }
    public void setCashier(String cashier) 
    {
        this.cashier = cashier;
    }

    public String getCashier() 
    {
        return cashier;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("paymentId", getPaymentId())
            .append("orderId", getOrderId())
            .append("receivable", getReceivable())
            .append("payment", getPayment())
            .append("payType", getPayType())
            .append("cashier", getCashier())
            .append("createTime", getCreateTime())
            .toString();
    }
}
